package com.lx.controller;

import com.lx.entity.BankCard;
import com.lx.entity.User;
import com.lx.service.TradeService;
import com.lx.service.impl.TradeServiceImpl;

import java.util.List;

/**
 * @title: TradeController
 * @projectName bankManage
 * @description: TODO
 * @author: yuanChu
 * @date: 2022/5/6  8:41
 */
public class TradeController {
    TradeService tradeService =  new TradeServiceImpl();

    //存款
    public Boolean saveMoney(Double money, String cardId) { return tradeService.saveMoney(money,cardId);}
    //取款
    public Boolean takeMoney(Double money, String cardId) { return tradeService.takeMoney(money,cardId); }
    //根据手机号查询用户名下的银行卡信息
    public List<BankCard> findBankCardByPhone(String phone) { return tradeService.findBankCardByPhone(phone); }
}
